<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>项目属性排序 增长 收缩</title>
    <style>
        .box {
            background-color: yellow;
            display: flex;
        }

        .box div, .example {
            width: 200px;
            height: 200px;
            border: 2px solid red;
            font-size: 30px;
        }

        .item3 {
            order: -1;
        }

        .item1 {
            order: 0;
        }

        .item2 {
            order: 1;
        }

        .item4 {
            flex-grow: 1;
        }

        .item5 {
            flex-grow: 1;
        }

        .item4 {
            flex-grow: 1;
        }

        .item5 {
            flex-grow: 2;
        }

        .item6 {
            flex-grow: 3;
        }

        .item3 {
            /* 父容器空间不足时，本元素也不会压缩 */
            flex-shrink: 0;
        }

        .item1 {
            /* 其它项目的压缩比例为1，本元素压缩比例为2 */
            flex-shrink: 2;
        }

        .item2 {
            /* 默认值,压缩比例为1 */
            flex-shrink: 1;
        }
    </style>
</head>
<body>
<div class="example">参考大小200px</div>
<div class="box">
    <div class="item1">01</div>
    <div class="item2">02</div>
    <div class="item3">03</div>
    <div class="item4">04</div>
    <div class="item5">05</div>
    <div class="item6">06</div>
</div>
</body>
</html>